<?php
/**
 * Core_Controller_Sessiom
 * session controller
 *
 * @author Adrian Stolarski
 */
class Core_Controller_Session implements Core_Controller_Mainable {
    
    /**
     *
     * @var type $session_model
     * session model handler
     */
    public $session_model;
    
    /**
     * constructor()
     * @param type $session_expire_time
     */
    public function __construct($session_expire_time) {
        session_start();
        session_regenerate_id();
        session_cache_expire($session_expire_time);
        $this->session_model = new Core_Model_Session;
    }

    public function main(array $variables = null) {
        $this->session_model->main($variables);
    }

}
